<template>
<ul class="pri">
	<li v-for="(json,i) in items" class="s">
		<img :src="json.img" alt="">
		<p>{{json.item}}</p>
	</li>
</ul>
</template>
<script type="text/javascript">
export default {
	data() {
		return{
			items:[]		
		}
	},
	created:function  () {
		for (var i = 0; i < 3; i++) {
			this.items[i] = {};
			this.items[i].item = "【10月抢购预告】 荣耀乐檬大神爆款 惊爆价";
			this.items[i].img = require('../assets/index/s'+i+'.jpg')
		};


	},
	
}
</script>
<style type="text/css">
.sales .s{
	border: 1px solid #ecebec;
	margin-bottom: .1rem;
}
.sales .s img{
	width: 100%;
}
.sales .s p{
	height: .3rem;
	line-height: .3rem;
	font-size: .15rem;
	color:#0d0d0d;
	background: #fff;
}
</style>